from Utils.command.command import Command
import CloudEngine.core.VTActor as VTActorMod
import random

class CreateSurfaceCommand(Command):
    def __init__(self, poly_data,options):
        self.poly_data = poly_data
        self.options = options
        self.actor = self.execute()

    def execute(self):
        actor =  VTActorMod.VTActor(self.poly_data, self.options)
        actor.set_render_type("SURFACE_WITH_EDGE")
        return actor

        